<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>alert|confirm|prompt</title>
</head>
<body>
    <script type="text/javascript">
        // window.alert()
        // alert("my name");
        // var a = window.confirm("你确定要离开网站吗!");
        // console.log(a);
        var food = window.prompt("请输入早饭:", "包子")
        console.log(food)
    </script>
</body>
</html>